//
//  Pic+Num.m
//  TT
//
//  Created by lanou3g on 16/3/14.
//  Copyright © 2016年 Super磊. All rights reserved.
//

#import "Pic+Num.h"

@implementation Pic_Num


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addAllViews];
    }
    return self;
}

- (void)addAllViews {
    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width * 0.1, 10, self.frame.size.width * 0.1, self.frame.size.width * 0.4)];
    self.imageV.image = [UIImage imageNamed:@"message_image_placeholder@2x.png"];
    self.imageV.userInteractionEnabled = NO;
    [self addSubview:self.imageV];
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.imageV.frame), CGRectGetMinY(self.imageV.frame), self.frame.size.width * 0.4, self.frame.size.width * 0.4)];
    self.label.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.label];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
